package com.constant;

public enum ErrorCodeExplanation {

    PARAMETER_ERROR("参数错误","调整参数重新上传"),
    SYSTEM_ERROR("系统错误","联系小二排查"),
    PERMISSION_ERROR("权限错误","检查权限"),
    INVALID_PLATFORM_SERIAL_NUMBER("无效的平台流水号","更换流水号"),
    TAX_CLASSIFICATION_CODE_NOT_FOUND("未找到商家在阿里发票平台配置的税收分类编码","前往阿里发票平台配置或开票接口传入Item_no"),
    INVOICED_SUCCESSFULLY("该流水号已经开票成功","如需开票，请更换流水号"),
    INVOICING_IN_PROGRESS("该流水号正在开票中","等待开票结果消息，如长时间未返回，请联系技术支持或服务商"),
    TAX_NUMBER_ARREARS("税号欠费","前往阿里发票平台续费"),
    EXPIRATION_OF_TAX_CONTROL_UNIT("税控单元到期","前往阿里发票平台续订服务"),
    THE_USER_IS_A_RESIDENT_OF_ALIBABA_INVOICE_PLATFORM("用户为入驻阿里发票平台","入驻阿里发票平台"),
    INVALID_ORDER_NUMBER("无效的订单号","检查订单号格式，或订单号与sessionKey的关系"),
    INVALID_VENDOR("无效的供应商","联系技术支持添加供应商关系"),
    APPLICATION_DOES_NOT_EXIST("申请不存在，可能是延迟，订单没有申请发票，订单开票金额为0等原因","请稍后重试");

    private final String wrongInformation;//错误消息
    private final String solution;//解决方案


    ErrorCodeExplanation(String wrongInformation, String solution) {
        this.wrongInformation = wrongInformation;
        this.solution = solution;
    }

    public String getWrongInformation() {
        return wrongInformation;
    }
    public String getSolution() {
        return solution;
    }
}
